<!DOCTYPE html>
<html>
<head>
    <title>{$user.user_nickname} - 我的评论</title>
    <meta name="keywords" content=""/>
    <meta name="description" content="">
    <include file="public@head"/>
</head>
<body class="bg-light">
    <include file="public@nav" />
    <div class="container">
        <div class="row">
            <div class="col-md-3">
                <include file="public@usernav" />
            </div>
            <div class="col-md-9">
                <div class="card border-0 mb-3">
                    <div class="card-body">
                        我的帖子 · <a href="{:cmf_url('portal/article/add')}"><i class="fa fa-edit"></i> 发布帖子</a>
                    </div>
                </div>
                <div class="card border-0">
                    <div class="card-body">
                        <table class="table table-bordered table-striped table-hover">
                            <thead>
                            <tr>
                                <!-- <th>#</th> -->
                                <th>标题</th>
                                <th width="150">发布时间</th>
                                <th width="150">操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <foreach name="articles" item="vo">
                                <tr>
                                    <!-- <td>{$vo.id}</td> -->
                                    <td><a href="{:cmf_url('portal/article/index',array('id'=>$vo.id))}" title="{$vo.post_title}">{$vo.post_title}</a></td>
                                    <td>{:readable_time(date('Y-m-d H:i',$vo.published_time))}</td>
                                    <td>
                                        <a href="{:cmf_url('portal/article/index',array('id'=>$vo.id))}" title="{$vo.post_title}">查看</a>
                                    </td>
                                </tr>
                            </foreach>
                            </tbody>
                        </table>
                        <ul class="pagination">{$page|default=''}</ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- /container -->
    <include file="public@footer" />
    <include file="public@scripts" />
</body>
</html>